function [f g] = ZermeloCost(X,dt)

N=length(X);
f=-X(N-2);
g=zeros(N,1);
g(N-2)=-1;
end

